package com.alexgaoyh.MutiModule.Dubbo.RWSeperate.provider.read.mutiDatabase;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.api.mutiDatabase.read.IMutiDatabaseReadService;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.mutiDatabase.MutiDatabase;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.mutiDatabase.MutiDatabaseExample;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.mutiDatabase.MutiDatabaseMapper;

@Service(value = "mutiDatabaseService")
public class MutiDatabaseServiceImpl implements IMutiDatabaseReadService{
	
	@Resource(name = "mutiDatabaseMapper")
	private MutiDatabaseMapper mapper;

	@Override
	public int countByExample(MutiDatabaseExample example) {
		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(MutiDatabaseExample example) {
		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public List<MutiDatabase> selectByExample(MutiDatabaseExample example) {
		return mapper.selectByExample(example);
	}

	@Override
	public MutiDatabase selectByPrimaryKey(Long id) {
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(MutiDatabase record,
			MutiDatabaseExample example) {
		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(MutiDatabase record, MutiDatabaseExample example) {
		return mapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(MutiDatabase record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(MutiDatabase record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

}
